import sys


class aaa(object):
    def __init__(self):
        self.a = 2
        self.b = 5

    def add(self):
        return self.a + self.b


def test():
    return aaa()


if __name__ == "__main__":
    aa = test()
    b = [i for i in range(1000)]
    aa.a = b
    print(sys.getsizeof(b))
    print(sys.getsizeof(aa.a))
    print(sys.getsizeof(1))
